package com.wgt.observer.option_status;

/**
 * Created by wgt on 2017/6/19.
 */
public class TestDemo1 {
    public static void main(String[] args) {
        WeatherSubject weatherSubject = new WeatherSubject();

        LiliObserver lili = new LiliObserver();
        NanaObserver nana = new NanaObserver();
        SisiObserver sisi = new SisiObserver();

        weatherSubject.addObserver(lili);
        weatherSubject.addObserver(nana);
        weatherSubject.addObserver(sisi);

        weatherSubject.getCurrentWeather();
    }
}
